updated the readme with api info and modified the lib variables