Added several samples of API usage.