Allow for command line usage (without GUI)

If no arguments are provided the GUI will start, otherwise the file, sampling density and sampling type can be set from a command line call.