Added comments.
Added logic to place field items under a fields node for xml response.