Lots of level related changes
Merge pull request #41 from lkrenitsky/develop

Lots of level related changes