Lap almost works

I don't know what's going on. Fix it soon. Still doesn't write to
outfile