more work on model template for preplate
more work on porting model template
added format and datetime constants
more work on format string