added docstring to logging fxn
finalized pickling fxn