Ballistic theory and design of gun and ammunition