* changed arguments parser so that script can be run from any directory
* corrected format error