updated documentation & formatting