More updates to Rmd. Added popular terms function in scratch