reorg of the fem2d code