Added comments for all function