Restructured files and added functioning leader election based on vessel IP