make number of points in grid command line argument
add output
fix bug in Solver::solve