Add some initial unit tests

Added unit tests for the following modules:
- ```parallel_processing```
- ```parse_input_files```
- ```utils```

Also added more error checking, handling of border cases, fixed a few bugs, etc. while writing the tests.

Partially addresses #19.