Deprecates scan(). Adds scanFile() and scanData().

- Deprecates scan().
- Adds scanFile() to scan from file and scanData() to scan with file contents.
- Updates test files