taking account of nested properties in omitFields
refactor
get rid of console.log
Merge pull request #168 from picsoung/picsoung-omitFields

taking account of nested properties in omitFields