The influence of hydrogenation on superconducting properties of MgB2