moved functions into the main header public

added a few compares as well.