Fix for halting compile errors.
Fix compile issues and small bugs.

find_gcd function not currently in proper operational state.