Finished converting the loops to a more effective method. Added code to calculate basic reproductive value (R0).