Kinetic Plasma Simulations with the Particle-in-Cell Method I