Exception throwing for commands

Exception system for Commands implemented
A couple of exceptions added and used.