added a newInstance() method with unchecked exceptions and renaming createArray() to newArray()