Corrected hebbian learning and additional plots
Fixed some bugs