Add range function
Add flroot function, found bug in addition