Add info on logging and comments and fix typos