bring in study arms

also entailed fixing the village codes to facilitate merging