add var dumper for convenience
ignore composer lock in a library
correct link to JSON docu
cleanup and autoformat
save a call and refactored code
add docstrings and some coding style issues