fixed a few logic errors with how file data was stored, mainly the spacing was slightly off