improved the command line so less prone to crashing and over all
more intuative for a user. Also added proper command and operation
registeration functions. the text interpreter is neater now also.