Updated baselib and added baselib generator