Add a getField method, add comments