Added more config options and repels/bursts. Fixed a memory leak.