sidekick function

Builds a tree structure of an R source file