Fix style of switch statement
Be consistent about marking #endif statements
Remove obsolete constants
Split long string and use shorter URL