Add Layer.cpp with constructor/destructors.
Fix incorrect member name.