changed function name bi to bi_libbi and removed some deprecated code from inst/