Added license and docstring.