Comments in file, image and tools methods

added comments everywhere it was needed