fixed problem with NAN frequencies - it was the diagonals on the matrix. also cleaned up interface on Bubble class