Change properties and children API to functions
#451
Merged
properties and children API to functions
#451