updated quote controller with a few more comments
made some minor corrections and code readability changes