improved documentation, minor changes