now handles real with double instead of float. Changed from stof to atof in scanner.l as well