minor update to api sample output and fixed indentation