Yet another particle in cell code with EM solver incorporated