successfully (I think) changed to linked-list of layers - need to add function to do actual training