Updated modules to implement negative value checking.

and comments as well