added main/parametertune, fixed memory leak in gradient descent failing to delete force vectors