Implemented a ring buffer for keeping nodes. Implemented some stat reporting. Needs code cleanup.