Improved the command line interpreter and added more commands.