code cleaned.
capture added
Added DDA algorithm (but now in use yet)