Starting implementation of resolve command

Got the command definition and included the command into command type
Resolve implementation mostly done
Resolve implementation done, not tested
resolved some errors, minor changes
fixed up the resolve command