Added readCommands tests and implementation
Add readCommands from file tests and code