Electronic and elastic properties of MoS2