added a docstring and made the xlation context a struct, as it should have been