Fixed timing issues by

 1. compensating rounding problem when calculating intervals
 2. introducing sych marks to MML