Fix treeview, add open directory, add syntax detection, and many small updates