Made it so range of frames to analyze is a parameter that can be passed at the command line