added auxilliary method
refactor cli code
Added init code for when the new_generator method gets called