fixed command line arg handling
converted to unix-style textformat (removed <strg>M)
fixed depreceated string conversion warning