inherit generator comments and add block hoisting - fixes #196
small performance improvements