Fix possible null pointer problem?
Remove unused stuff
Add networking to message passing system