added comments on functions and classe to be auto refactor. done for the day