added more standard return codes; changed documentation to be parsable by pydoc