Add build status and fix sample code