fixed isFloatEqual
added subdivision/ basic linear smoothing, cleanup