Added comments

Added comments to the functions I created and some throughout the main
function as well