fixed bugs/issues #11 and #12. That is the #11 the problem of not counting frames and integer division in main.compute_epsilon and #12 bug in NeuralNet.train where "prestate" was accidentally used instead of "poststate"