program now prints out all lines in R files.
Added function definition to find open braces