converted some square roots to hypots
turning doubles into floats
rename bufs
added third buffer to ease cpu load