Implement edit function in parser

-Added edit function into the the command handler