add logic to verify bond
minor fix
minor fix
minor fix
minor fix
trivial fix
trivial fix
Merge pull request #30 from xinwu/master

Add logic to check if bond is correct in the end