Added so that the make docs command also compiles the files, only the most recent compiled code is generated for the documentation.
Renamed the function in lib_json, so the places it was used needed to be renamed aswell.
Added proper and more detailed documentation. Generate the documentation with 'make docs' and take a look.