EPDM SWTaskAddIn and writing SolidWorks VBA Scripts

Does anyone know, is there any documentation or posts around for writing SolidWorks VBA Scripts within the EPDM SWTaskAddIn?

In particular, I'm wondering...

-Is the VBA script limited to whatever functions and subroutines I can put into the script?  Or, can I also reference/add classes.

-How do I go about adding references to external assemblies like the PDMWorks Enterprise 2014 Type Library?

-Any general guidelines on developing and debugging these scripts?

-What determines the Pass/Fail criteria of a Task?  Can I provide a return code somehow?  Can I customize the Failed email so it might have more detail?

Newbie,

SolidworksSolidworks Pdm enterprise Pdm