Implement message tracing, fix a few mistakes, start to implement level initialization