Investigating the effects of progenitor metallicity on observable features of chandrasekhar mass type ia supernovae and improving detonation models of sub-chandrasekhar mass type ia supernovae