Added some printf statements in parsecommand