fixed broken search. Implemented super-basic smart indent.