Remove comments and wrap all main-function content with immediate function.