bugfix and getBaseRoot introduction
library export added