add references and codes.
Merge pull request #3 from hansode/docs

add references and codes.