added intro to r with ans test bug fix