update copyright year
wrap main code in a function expression to not force strict mode for everyone else
Rewrite range checking for begin/end args. Fixes #1.