Added explain command
Now taking commands through switch