removed some unnecessary code, updated documentation