v 0.2, generic custom functions support, minor edits