Add an initialization function
Merge pull request #3 from akkana/master

Add initialization function.