Refactored running the daemon and client into one file
Moved test file into seperate folder
Updated dependencies