Created ggd() and test prints
Added comments