added argument parsing and sequence generation