added Stevo's changes
fixed permissions
Merge pull request #12 from AdrianTM/master

added Stevo's changes