Move global variable declaration for consistency
Make constructor and addChild private

They don't really need protected right now.