Commented the code, changed the encoding (colour and yscale) and modified for loop for adding master commits first, to avoid repeat commits in branches