removed 'bad form' comments about np.linalg.inv, i think it's
appropriate there!
added asarray(data, dtype=np.float64) to add_data calls