added rudimentary documentation, fixed margins