Renamed tests to more sensible names; added some clarifying java docs.