remove calls of undefined functions

Here's a patch for issue #14. 

By the way, thanks for the library. I am using it to chop markdown files into bite size chunks for printing as an interactive tutorial in https://github.com/m-n/rundown.