added dLdx check
Massive rework of Layer structure (in progress)
Remove model copying to reduce memory usage
Delete unused Transform class