Implement statstables, fixes #4
Add statstable support