minor updates in documentation
trap document updated, sample added