updated code to run in R 3.0 and run a bit faster
added updated brlr package that runs in R 3.0