Add write features to hoa/xml attribute
Update API documentation and format code.