added pydoc comments