Added more in-code documentation