Added Stats and formula functions

THIS BUILD DOEs NOT WoRK