remove File::hasBlock
changed return values of getSections, getMetadata to optional<Section>