Changed the return statements. Added a use case for a wrong command.