Finished getIP method and changed the constructor.

We still need to delete alot of files that actually should be ignored.