update copying
add autogen script
add .gitignore