Update singelton.php

Moved child instancing to main singleton object