cleanup addChild method

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | travis
| Fixed tickets | -
| License       | MIT
| Doc PR        |