Fix coding guideline issues
Add generator to create console methods for workers