Make console access functions private, added friend fn. for output