minor cleanup

* main now returns the right status
* added comment
* added assumption about multiple occurances on the same line