first commit of clirtrain main script