Accretion and emission processes in AGN