Add a default value for once name and check once parameter is a string

fix #20
Merge pull request #23 from theodoreb/default-parameter

Add a default value for once name and check once parameter is a string