Adds return to the main() function.
Fixes a coordinate not being compared properly.
Fixes comment not refering to reality.