Added invalid reply type and empty constructor. Rewrote most of the parsing routines.