Cleanup

- Introduce WEMO_DEBUG preprocessor flag to control debug output
- Clean up debug code & test both debug/non-debug builds
- Rename some functions to be consistent and delete unused functions