Object updates

Simplified the univariate object by reducing the number of data points
stored and replacing them with functions to calculate the same
statistics & group them logically.