Refactored model. Introduced mqtt and it is sending schedule to the broker now.Fixed #4