mostly code comments but some R and awk thrown in too