Added get_next_uid.sh and a few other minor updates