Update Element.java

Added type string to init function.