commandline
Refactor to support unit testing
Added some initial tests
Corrected syntax error and added test case for git tags