add a unittest, clean up lib structure, all dartdoc comments
Merge pull request #36 from google/testforpublib

add a unittest, clean up lib structure, all dartdoc comments