Tokamak plasma power balance calculation code outline and operational manual