Adding example custom_interval. Some refactoring around interval customization. Stable{msvc-9.0, gcc-3.4.4}