Initial modcol commit
Fix unbuffered output writing