Added license and docstring