fixed typos and updated sample documentation