Corrected addColumn.
Moving layers operations to an own header.