added additional functions, fixed some errors

added additional functions for item and component types and attribute
fields.