Use switch for parsing arguments.
Change default save behavior.
Merge branch 'master' into read
this is ugly...

Conflicts:
	main.c