Fixed some bugs.
Added a logger functionality.
First correct learned results.