bug fixes and online learning helper (minibatch isnt working yet)