cleanup
added option to skip blank lines
moved options hash, clarified comments
need this to work on Ruby 1.8.7