major rework and cleanup
Merge branch 'master' of https://github.com/jrandallsexton/xdb