refactored, moved MQTT and const to root directory
got rid of swp files