Updated comments and closed code example.