Everything implemented; should be tested

Everything runs and the results are sufficiently accurate.