fixed show_table in tools.inc
$expand added to show_table parameters
index.php also shows table with total values
showing of final result added to index.php