Updated to ver 2, added Debug.java, for debugging.