Seperated into files and more changes
added dht lib and some cleanup and command renaming