better cmd line argument handling, functional download