Refactored main class.
It has been moved to a .cli package, and renamed as CLI, as it handles command line arguments.
Parsing has been moved to use JCommander, and unused GUI related functions have been removed.
The Java version check has been simplified as well.