Removed debugging prints. Added catch for case when no command string is entered (allows to just hit enter and only have a console prompt printed).