Fix console logging and add console logging after bindTree and showTree