more refactoring of code. finished functionality of nack resolution in
database. added properties to save information between sessions