Fixed deprecated method warnings. Found a place where double was returned and made Float.