Fixed shebang
Added comments to the comparison functions
Cleaned up function declarations
Added comments to the dump part
Added comments to the select part
Added comments to the argument parsing part