conventioning patch 5

- added terms and copyright
- fixed sleep interval on long polling script