added channels field to file header.
bugfix