changed logic for format version 1 to execute on 1+
added parsing of version 2 header information
added parsing of version 3 header information