Put all the declarations in one header: field.h
Refactored a little bit
Added checking of given options.