created a few more definitions for classed, added more math util functions