updated documentation, fixed formatting