- added 'compile' script
- fixed intervals checking