Cleaned up SHA1
Updated preprocessor flags
Fixed SHA1 function