Minor Bugfix

This is a minor bugfix in which the program would close out immediately, I
have now implimented getchar() to wait instead, hopefully this will
prevent it from shutting down randomly. I'll do some code cleanup tomorrow
though.