Remove unneeded modules, and added docstring info on recursive parameter