fixed some syntax, added some base libs