Added Error Checking to addTransect (work in progress)