started big code update and tidy
only using glob when a single argument is passed
removed globbing
improved command line code
improved quality of code and added more documentation
last minute final improvements
Merge pull request #21 from neocotic/code-update

Code update