Made selectChildren recursive, and select a simple function that justs selects the item.
Merge pull request #4 from bdlangton/performance

Made selectChildren recursive, and select a simple function that justs selects the item.
Fixed merge conflicts.