replace colnames<- with dimnames<- call to speed up
use global variable to store log level in C . #141
add R APIs. close #141
set extend_to to -4000 instead. #147