Neatened and commented sky code
Rename of minor variable