Changed license
Added some docstrings