fixed returning history for mini_batch. updated timeit tests. removed old main file as it is now obsolete.