Theory and observations of magnetic islands