added needed files for testing kdtree assignment
updated work
misc cleanup and bugfixes