Added produce command draft
Cleanup some coding style