changes made to controller.js for logging messages for wrong initial value and equation