Changed mode to imath and fixed the back search to not require a header.
Added evaluation across sections and ignoring folded sections. Also fixed functions.