Adds basic logging through stdout.
Fixes flag being put without message.
Removes hash() functions.

Helps with the network.
Adds DEBUG flag.