generate a main examples file