tidy up code a little, add simple table to index, add jquery tablesorter