Added support for multiple groups

Added max run size configuration parameter
Added duplicate article check on insert