Switch exports to UMD style for easy in-browser use
Minor comment cleanup