Code for calculating optical fields and forces in generalized lorenz mie theory