Added CommandLine class, unit tests for it