Comments and learning

- Added some comments
- Added forward declaration to speed up compilation
- Created the learning button and learning functions in the GraphicNN
class