Added more stats

Created the layer class for the entire system. But i need to then make
sure that the thing works more efficiently, and the full user list may
also need to go global rather than local.