Better error handling & Improved output

- Script will no longer crash if an encrypted file is scanned in
- Output now includes headings