Added more htmlayout functions, and improved demo.