Refactored and added functionality

Enter to terminate implemented, Prompt user for file. Tests have been
commented out.