updated field lengths and basic formatting of code