changed main from require() to define() since main should already be require()ed from a template. also updated the header comment.