add better format to sources
error checking and free json objects
move all function definitions to todo.h
better routing
implement logger
better styling in app.js