added new -(g,l) argument and updated checkArguments method
replaced checkArguments with checkIntList and getComparison methods to improve organization