Fixed scope variables so that console message will be correct after generating adapter.
Fixed some method names and comments, added some code to the boilerplate.