add interval service
update code
Merge pull request #18 from gabilen/intervsl_service

add interval service