bug #17 - updating modpy to facilitate message preview
code cleanup - moving generic functions to the parent class