fixed bug for header  output
added samples and chromosomes counting for peek
returns an error when random access is required but no index is found