Implamented the -a option. This program is now done! (or so I think) :D