added line counting script
added forgotten cudaFree calls to darcy arrays