Made createCommand private
Made get public
Formatted code