Added an if-then statement to add a helpful error message in case the user chooses to begin analyzing on frame N where N is greater than the total number of frames in the trajectory