J-O Irisson changes to code

cleaned up code regarding detection of casts and assigning cast
numbers. moved this code out of the initial ddply so that casts can be
assigned (by transect) after files are merged