fix bug. Pi should be a float number.
Re-write Makefile.