changed for char by char input and printing, blocksize defined globally