Generate init file