Change generate_id to start location numbers at 1, not 0.  This fixes gh-14.