finished up getting clustering working; main class works, need to get some unit tests in here