Added user data argument to Database.createFunction().
Better exception reports.
Fixes and tweaks.
Better documentation.