updated control scripts, fixed other minor issues