Fixed a few bugs in data extraction routine.
Fixed a number of bugs in release routines.