Fixed syntax error in options.dateFormat example. Closes GH-163.
Better options handling and fix bug resetting options. Ref GH-162.