Made a lot of changes to terminal.* object as well as some commands.