Added some changes so you can go from float to double computation easily.