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