Fix uppercase namespace trouble using Linux

Fix end table tag
Change sub-total array key to sub_total keeping twig compatibility
Create doc for use twig