Boundary IDs from Reader

There are problems with the boundary manager and the boundary IDs when read from file, i.e. the number does not match. This needs some checking.