fixed floating-point operations, cleaned up code, added subtypes for arithmetic questions