added units to model class; debating new smoothing function
added check on units to model class
fixing units issues
fixing units issues and adding test for array length