Development of open source microscopy including optical autofocus for automated imaging and single molecule localisation microscopy