A modified theory of gravity with torsion and its applications to cosmology and particle physics