Added a main() function that generates pickled AGGs.
changed default parameters