added max power search test code

also added IV mode to gui