added check of len(sys.argv), reformatted comments