Reimplemented the flat table
Merge branch 'jon' of github.com:Erotemic/hotspotter into jon