Added classes and functions

Added a new class for variables, upgraded functions with more options
and added functions in math