bugfix
fleshed out CSV logger
bugfix
Added IOError catching