Attached result template to exam + bug fixes