Need Kibana design document

Can you please provide some source/reference , to understand high level /detailed level design of Kibana features?

I need to modify the source code , to be exact I need to create 2 more sub tabs inside settings tab. I am getting lost trying to understand the program flow. Hence any sort of reference for understanding the code will be highly helpful

Thank!!

In Kibana 5.0, Settings have been replaced with Management which allows for this to be easily accomplished.

Here is an example of adding a tab under Kibana:
management.getSection('kibana').register('foo', { display: 'Foo', order: 10, url: '#/management/kibana/foo/' });

Which version of Kibana are you on?