Added better start and end functionality

Added Subject ID field, changed encoding to unicode, and added better
handling of possible errant behavior by subject
Removed unnecessary testing ouput