New API integrated

new api integrated, fixes to API file