Added new files, added a new loop. Documentation is coming. Cleaned up some code