small code tidy-up
Add library files for JSON and statistics