refactored layers and separated helpers
Merge pull request #21 from gopher-snakes-2013/layer_refactor

refactored layers and separated helpers