Issue 24: Extracted parsing for individual file types.
Issue 24: Add a check for filetypes.