Add fixes to the Sobel kernel so that it properly computes direction angle

Now that I better understand the atan2 function, this fixes the Sobel kernel so that it uses atan2 properly and constrains the angle accordingly. This should resolve issue #13 and resolve issue #11. Also fixed poor naming for theta matrix to resolve issue #12.