added table of contents integration, customization options for viewer and fixed some bugs like search problem on unicode characters