Add name member to Fence class

Check for fence id uniqueness when adding.