Added useful methods. Getting erroneous readings and generating random data