clean up, add bed-and-breakfast library for linear algebra