Added error events to patseq and error handling to tracks. Also got search working.