- Use the -D param=value syntax for the config instead of the command lineargs array
- Refactored the code, added some comments