Prepared Ipv6 functionality for #32 with some utility functions. Added more javadoc