Improved nested element creation

got rid of createTable