Basic rights code separation done
Implemented rights
Merge pull request #6 from Johnnei/Rights

Rights