Development, qualification and use of a code with the capability of internal assessment of uncertainty