various optimizations
2014-8-26 commit
Merge branch 'master' of https://github.com/abardam/ghost-system