More feature extraction

Finishing up some of the feature extraction code.. Needs more work though. I tested it a bit with different values for weights, and for learn/explore/discount/rewards rates and it seems to somewhat work, but I'm not sure.

Also fixed the makefile problem.