refactor layer
Merge pull request #6 from kernelsanders/layer-refactor

refactor layer