Add message sending test
Remove print statements
Add interfaces for Network and Key