More file parser code

Added preliminary json loading. fixed a few problems with loading field
data.