Fix compilation
Change float type to double

Change float type to double
Add license header