Fixes for debug mode
Extract update_weights
Renaming
Cleanup
Cleanup
Cleanup
Clean gradients
Continue support for parallel
Clean
Do simple memcopy rather than multiple small in parallel
Cleanup