modified docstring, added license