New kinds of solitons and periodic solutions to the generalized KdV equation