Added switch for turning on/off learning

Fixes #11. Along the way added a bunch of UI refinements, and aesthetic treatments. I hope they are well-received. If not, I can remove the aesthetic treatments.