Initial untested field length detection
Closes #12 detect field lengths. Closes #73 field type order. Fixed bug with add file dialog not closing right away.