format code, and fix bug: generate code (bee new) in windows