Added (c) header and improved docstrings.