Removed collect
Improved the conversion bins->numpy arrays
Implemented manual pickling/unpickling