Removing useless IDE headers.
Trailing newline plox
adding phpdoc to allows
Using constants for .. well.. constants
Adding ->extract() to both Permission and PermissionCollection
adding tests for extract functionality