adding comments to all functions and classes. renamed some methods to more logic names. removed the need to specify question number in xml