updated documentation, fixed bugs