field code update

fieldcode refactor
Merge pull request #8 from marqh/fcodes

field code update