working versions of coverage scripts tested OK, few typos fixed