making resistor function, fixing bug with analyzer, adding new level