little fixes here and there and console to support correctly return and newline control-chars