Added bin script

Per discussion in #2
Documentation on the log parameter seems wrong, and it actually wants a log object, not a function. @jcrugzz