changed some variable names
Changed blob array to arraylist, added helper funcitons