Merge pull request #12 from MattMS/master

Add history API goodness
Fix tabs and use a variable elsewhere