Moved code into appendix, started writing paper