updated documentation, minor fixes