Beginning to add test code. Cleaning up Trees. Adding error throwing