Add ability to load pickle
fixed exit error and added load pickle