Corrected tree initialisation check
correted build switch typo and usage