Removed repeating code. No noticeable performance gain.
Made 'pre' elements keep whitespace formatting
Made link structs end with a static _END_LINK link
Removed _END_LINK feature