Fix a bug.

Bug: TypeError: Object #<Object> has no method 'error'
Fix: Bound callback function to the right context.
Fixed documentation error.

Giving an extension through the `-e` option with inclusion of the period (`.`), results in output files like: `foo..tmTheme`.
Merge pull request #1 from Avaq/patch-1

Fixing some minor issues.