commented code and removed "statistics" functionality