added massive comments to _main and _dy