now using Java 8, rand trans in TrhView, refactoring, typos