network factory & better training framework
added debug goal
Added neural network test in main