A three-generation superstring model: (I). Compactification and discrete symmetries