Added header,footer appender method, init method and comments.
Added init method