git ignore ignores tmp_lrx files
fixed for loop iteration off-by-one; cannot declare variables within blocks now, only at top of functions