add bash completion for generate
minor changes