Renamed packages & added licenses

Also revised Pair to support equals, hashcode, and toString.