Commented the rest of the files

Added some general comments about what each function does