Make "format" param optional

Fixes #1 by adding a new option "format" that defaults to existing behavior.