Better error handling / Adjustable max preview results / Tree and HTML preview tabs