Docs and layout
Added correct exception handling for ajax requests and test page