updated copyright date
small documentation tweaks
reindented
moved local lexical-binding declaration to the top
docstring fix