Made stringrecordwriter singleton, small improvements