some fixes with headers.getRawHeaders() and added display for unknown types
added a test script and fixed some stuff