fixing th einf loop stuff
files i created for safety stuff and a testsuite.cpp that will work with fork and everything