option to dump the matrix in binary form (eg to support compression)
added EOL for formatting