Implemented query handling (untested).
Added skeleton for testing query handling.
Renamed corpus file.
Refactored parsing logic into separate function.
Fixed type issue with query parsing.
Implemented parsing tests.