prepare_tree() and prepare_array() had to be consolidated because I couldn't figure out how to do them separately.
Implemented argument_input().