DOC : Added docstrings to magic functions