Added name to java, replaced magic number in c