updated example scripts, initial client cleanup