Bugfixes, added statistics page