fix error with open in byte mod
add doc string for csv methodes