fixed typo in fields lookup
changing to info level logging, corrected indention problem
fixed some typos and bugs