write init file
add main func to init.go, ignore init.go on copy (fixes #49)