Changed commandr class to receive objects instead of reflections