refactor the topology
add comments for topology usage
add comments for topology usage
add comments for topology usage
Merge pull request #4 from xiaoyunwu/master

refactor the topology. Thanks Xiaoyun.