swapped command processor from using hashmaps to treemaps to speed up processing
added unit tests for command processor