Minor changes (not affecting results) in these scripts towards an easier understanding