jsonify_request function fixed. alarms module refactored.