tweaked for kwargs
added docstring
added license