fixed math
added stricter error checking for header parsing
added constants to increase readability of array lookups
made version less than 1.0 because we don't handle writes yet
initial readme