Added docstrings and changed file header (license + file doc)