renamed defined static values so they cannot conflict with other libraries. added power consumption variable. added operating mode functions. set frequency function.