created a Commands class that handles the commands given by the user in
Main.

also added a rudimentary way of interpreting commands.