Added info on how code works