Initial implementation.
fixed some comments.
Merge pull request #1 from taphu/init

Initial implementation.