a lot of changes.

Neural net added for learning.