Added the functions:
	write (double)
	write (float)
float version has a bug and is not working properly.