Modified comment nnetwork and added assertion utility method.
Made activationfn and errfn pluginnable.

Fixes issue #20.
Added extra activationfn/errfn error checking.
Merge pull request #30 from ImpGuard/fn-plugin

Activationfn and Errorfn pluginnability