document a function, delete redundant module