Added ability to add subnodes to nodes

Subnode entries have a percentage chance to get added, a minimum amount
and a maximum amount.
Some cleanup of whitespace ans usings