merged writeup.tex and formatted a few comments in predictor.cc