ThywinLib exceptions added

Added: exceptions handling
Removed: unnecessary printf
ThywinLib typedef added

Added typedef for DocumentPacket and URIPacket