update error value after each epoch and stop if low enough
version bump -> 0.0.3