Many particle and many hole states in 31Mg