Introduce strict mode, fix bad line-breakages, remove unneccessary explicite toString() calls and apply formatting to htmls