added notes to explain some of the functions in the main js sheets