Add comment, refactor a bit.
Move source files into src/
JSON patches.