only using glob when a single argument is passed
removed globbing
improved command line code
improved quality of code and added more documentation