added comments
added a static method to copy to a bigger array
not working properly need to fix