Add init function
Merge pull request #300 from erdeszt/list-init

Add init function