Update according to PEP 8 style guides. Moved all reinforcement learning functionality to new file learning/rl.py. Minor bug fixes.