Use net.IP instead of byte arrays

Closes #5.