Encapsulate IDs
Add constructor methods
Improve adaptive sync interval. Fixes #2