program now works, bug while quitting program, must complete docstrings