Update update_stats.cpp

* Removed unused code.
* Request/enhancement #113 / #71