fixing the problem with calculting ticks, adding commas for rest note
updating tick_of_beat for the condiciton of zero dots