removed trailing whitespace
added timeout option to tools/test_mappings
better error reporting for LWP generated 500s