fix minor bugs; implement hitTest