refactor Ko detection logic and improve source code comments
refactor Ko detection logic and improve source code comments

herzbube/littlego,herzbube/littlego,herzbube/littlego,puremourning/littlego,herzbube/littlego,puremourning/littlego,puremourning/littlego,herzbube/littlego,puremourning/littlego