Title: Atomic, molecular and solid state effects in photoelectron spectroscopy