Fix calculation error in reading marks. Add tick marks in activity.