perfect ai slightly more perfect; added plumbing to interface
fixed a minor error when using java 1.8