cleaned up and changed some variable names (mode.select -> varselect.method, bw.select -> bwselect.method, bw.method -> bw.type)