Switched to using readline library for reading user input, which enables things like pressing the up and down arrows to go through previous input. Also fixed a typo in the help information displayed when the user gives an invalid command.