added comments, updated Kosaraju implementation