Added simple statistics to table, implemented sort functionality