 
         /* End Program */
 
-		cudaDeviceSynchronize();
-		cudaEventRecord(stop);
-		cudaEventSynchronize(stop);
 	    return_value = cudaGetLastError();
 	    if(return_value != cudaSuccess){
 	    	printf("Error in Kernel\n");

	    }
	    cudaEventElapsedTime(&time, start, stop);
	    printf ("Time for the kernel: %f ms\n", time);
		return 0;
	} else {
		printf("parameter required\n");

        }

        // Copy vectors to device
        cudaEventRecord(memcopystart);
        cudaMemcpy(deva, hosta, size, cudaMemcpyHostToDevice);
        cudaMemcpy(devb, hostb, size, cudaMemcpyHostToDevice);
        cudaEventRecord(memcopystop);
        cudaEventSynchronize(memcopystop);

        // Calculate blocksize and threadnumber
        int blocksPerGrid = 1;
