Improved efficiency.

Made the script faster and sleaker, trimming a lot of excess lines. also
added a few new options and moved the batchlines control to the
configAdvanced.txt file.