Adjust warning and api usage in readme