began working on checking for the flags -a, -l, and -R
completed the function that looks for the flags -a, -l, and -R