Remplaced old API with new version

Updated API source, added new examples, removed unncessary files not
relevant to the API.