Changed all instances of C's double type to float64