Added class for integrating with rk4. Closes #3.