Incomplete Patterns and Tree browsing added. Still memory leaks.