added layer class
added layer object and finished unit tests for all three node types.