initial clean-up

First, let's do some clean-up :
-removal of unecessary import
-some lint warning fixed
- Math.floor instead of FloatMath.floor since it is faster