fixed typos, clean-up of scripts etc