Format source code and add comments