cleaned up code and made the program more interactive.