Add copied init script, minor fixes