Cleanup of DOAP class

Just fixed some issues, made it more efficient, removed unnecessary code
and proper permissions implemented
Merge pull request #39 from dhensby/code-clean

Cleanup of DOAP class