The Kaon B-parameter and K-π and K-ππ transition amplitudes on the lattice