An air shower array designed for cosmic ray variation measurements and high energy gamma ray astronomy