Changed accuracy to double. Made step size significantly smaller. Added visualization code.