removed some unnecessary api files and updated build.