Module now works as ganglia module instead of just from command line. Added extra validation around params