updated implementation and documentation of class command