Layers Patch

Completed work on the Layer class.