Included cmath so program will compile on Linux, added spacebar to clear initiator and generator