Touched up metadata and added a few stats functions