Ab-initio computation of superconducting properties of elemental superconductors and MgB2