added setup.py; functionized compile_latex and view_file; moved to python2; added top-level command before each line in config; threading instead of multiprocessing