Improved Error handling

updateLogs parses the log for the character '!'. However some warnings
also produce an '!' in the LaTeX log output.
Only checking for the response.errors.length makes sure that the pdf is
displayed if warnings occur.
Added .DS_STORE for Mac OS