All tests passing! Refactored quotmod to have all proper checks