add pickle extensions
add docstring; adjust stdout
pickle write binary