More tweaks to quad equation

User now knows why the program exited