small cleanup of templates
don't crash when importing bib items such as @misc{__????}
usable error messages when uploading unusable files