Implemented rename_functor/4 and fixed some PlDoc warnings