Working on the R API

Started on a unified import/parse function. Currently only supporting
blocking calls. And not finished.