Added more code documentation.