Improved CRC functions and defines
 - Improved performance
 - Cleaned up