ModifySet: Parse the permission

Implemented test cases as well.
Merge pull request #8 from Shaky777/newbranch

More implementation code for ModeParser