Fixed small typos. Moved renderReport call to a callback function. Fixes #6

Fixed small typos. Moved renderReport call to a callback function in setReportDefinition.