seperated protocol from routing
motes are now running async in threads
race condition caused segfault
cleaned up code, reduced main() complexity