adjusted flags to use less hard-coded defaults (empty string and false)

added profiling option for testing
Merge branch 'master' into dev