Add getCommand public method.
Merge pull request #23 from pataquets/make-getCommand-method-public

Add getCommand public method.