Added documentation to the command class and fixed init method