Fixed wrap_lib

Addressed all comments from the previous PR from Tom. Closed that PR and opened this one. Contains the completely updated and corrected wrap_lib.py module.
should probably find the first non-empty line (or tell me that numpydoc always strips said empty lines).