Bunch of miscellaneous code as I try to learn