Fixed a bug in printString(), improved printString() generated code, implemented a better allocCell-Algorithm.