A cleaned-up LaTeX class and template based on my M.Sc. thesis from UVic