X-ray spectra and time variability of active galactic nuclei