Misc...

Training data should include more steps between 0 and 2*pi
Decreased desired error by a factor of 10.
Added comments.