Modelling and Design of a Quadrupole Ion Trap