some silly mistakes corrected
vars used for config
Merge pull request #8 from Mallics/master

Fixed some silly mistakes. Also got local env to work.