second round of changes by JL to code. added cast detection/numbering, gave meaningful species names and added in date-change at midnight to physical data
merge local and remote branches