Updated p1a.cpp to have files read in correctly and created a rudamentary loop to check if its been 10 minutes