output format fixed
removed main class from jar
fix case when point is on the edge