initial commit
fixes
add repetition zero or one support
added license