Log statements added
Bug identified: else removed
Merge branch 'latexerror' into develop