Added version command
Added proper logging for CLI