Code cleaned and commented.