added more comments in code relating to previous commit