Added class for Permissions.
Added ability to format localisations.
Remove newline from end of file.