Fixed bug where pattern recogniton algorithim was not working
Added ESN tuning function, tweaked (badly) collect states and ESN to not print out as much junk