Reduce margins to zero.
Add some comments (still more to be done), make variables consistent