add stdlib.h to make atof properly return double type