code cleaning: no lines with more than 80 characteres
code cleaning: sub-functions for init
code cleaning: add comments
code cleaning: environment variable in uppercase
add possibilities to add permissions for all docTypes
Merge pull request #21 from poupotte/master

Code cleaning