update index messageController and enhance exception handling

and open the private Config constructor... like xiphux
commitdiff: sidebyside param was changed to output