Clean up the format of code
Refactored around lib/helper
Fixed invalid download URL of generator