Small typo fixes
Major refactoring, added variant calling features

Still working on finishing. Adding ability for variant calling to be
stopped and started up again.