[Fix #49] Remove textcomplete-wrapper
Accept function as header and footer options