Explain functions of lysosomes in as much detail as possible.