Modified the code to comply with old c++ grammar
Changed the definition of hostFields
Wrote a new GetFields
Modified the tests to reflect the change of GetFields