Remove comments and empty unnecessary lines.