Fixing some things and adding tree editing to import.html.