make interval optional to resolve #5

closes #5