Version 1.2

Update index template and add output function