Changing function realms

Brougth the hasVisted and getUserIP to allow use outside of the class.