adding exception handling. Adding annotation-conf for MVC so JSON conversion will be automated.