float -> double and other warnings

Changed all floats into doubles
Resolved warnings with int < unsigned int