Implemented the check domain name function
Also added more frees into error functions. Unfortunately there is still
the issue described at the top, however now it will error when you refresh
the connection. I think one of my error functions is free something that
hasn't been allocated yet. Still can't figure out what is causing it. With
all the error prints I have in there, somehow when it does error none of
them get called.
Changed .gitignore