fixed csr storage
added write to file func
make csr list print