Added graphics library and made some other changes as well