Updated PHATCapture.cpp with smart routine

PHATCapture.cpp now features:
-Automatic analysis of all video files written per trial
-Smart error checking for incorrect user directory input, allowing the
 program to still run analysis on files and store output even if user-
 provided directory is incorrect.