Mostly org changes, some support for R and adding minor mode hooks