Better documentation and explicit licensing
Implement JSON database to fix #2