add listdefects function
tune listdefect function
Merge pull request #2 from Chunjie/master

add listdefects function