Small tweaks on errorvalue and write and readB1logfile functions.