added docs for inline and advance, added subheadings