moved all print related stuff to init
removed print related hacks and added globals log, logn, logf etc