fixed seg-fault error, was realloc'ing wrong pointer
added test code to repo
renamed arraylist obj