fixed toc
Added better regions (optional and regular). Added global meta data. Minor fixes.