Added the mode option for the weather data which can be either html, json or xml.
Added a log statement.