fix printing of multi-line output on Windows
unify function behavior in shell and server
updated README