Initial version

Origination version
maxrow change

increased max rows on smart template to 1000