Merge pull request #164 from chris18890/dev

fixed permissions issues, closes #163