Finished implementation of logging, and fixed parameters to make averaging work better. Now just need to check error models.