Fixed readHeader() not getting passed correct filepath