fixed cosine error in beam.py and added np.savez to make_clusters.py