update docs in layer.h
style updates