Updated comments and documented samples