added comments to divide blocks with subparsers
added add_contest() function