improved various array list functions and random string function