Issue 8: Write values read from p1 to json file
Small improvements

- Update version numbers
- Add signal handler for SIGTERM
- Sort json data on keys