Update - added statistics functionality

this update adds several lines for the statistics