Added total flag

Added a total flag so you don't need to save all scripts. Selects scripts at random to save. Not the best random choosing system, but its a start.