Notes on Symplectic Integrators

...and other things.
You can find the code here