Added rm and lrm commands, fixed command processing bug