Added mixed Mod/Integer arithmetic and documentation