add gitignore
Cycle control using FOR()
little incoherence fixed in one of the two for loops