docs, initWithParams
improved creation of subelements