Add Shuang's code

Add three scripts by Shuang.
Change library() to require() in those scripts.
Add loaded packages to "Depends" in DESCRIPTION.
Export everything in NAMESPACE for test.