Added a k_factor / limit on the number of nodes per bucket.  Added some type checking on bucket initializiation.