Update Project 5

Rewrite measurer.py
Fix some problems