Gamma ray spectroscopy of $^{31}$Si