default command line options
Refactoring and malloc corrections