Adds switch statement to change output; Adds fileTest