Merge pull request #2 from cdolivares/dev

Merge 1
Merge branch 'dev'
properly reset private vars
change in default permission middleware