Added option to specify number of LEM's via a command line argument