fixed addParent + small formatting improvements