to pr

I am actually pretty impressed that this came in at ~100 lines. Most comments are going to be stylistic I think