fix line_info_reset_start() bugs, a few other small fixes/cleanup