Updated the framework so that deciding which files to run ls on and the
	execution of the command with its flags are now two seperate functions.