Fixes and improvements in ample.defineClass().

Public functions were incorrectly reported private on toString.
Added parameters in toString method.