Merge pull request #105 from aseemgarg89/master

add init function