added random temp generator
some fixes