Code for running and testing simulations started - need to finish interweaving code
Fixed some typos and math mistakes