Added the Aggregate class, more random functions, and added some documentation.