The feudal system was imperfect and to make them you had to break others.
The major impact of Western imperialism on Japan came when Admiral Perry "opened" Japan to trade in 1854. This action on Perry's part shocked Japan. Japan's leaders had believed that their country was superior to all others until they were shown otherwise by the technology that Perry brought to bear on them.
One of the presidents duties is to serve as the commander in chief.