Add public fields handling
Merge pull request #428 from thinkbeforecoding/master

Public fields handling (optional)