added dataGrapher and fixed many bugs, including file input bug, pages tolerance and gui bugs