Updated. Added an option for exponents and added option for physics calculations.