Print help if jagen was ran without arguments
Replaced global variables with p_flags