Remove IIFE. Not necessary
Add a bunch of documentation, and remove dep on date-utils