* statlog in C * fix swaglog and the test * add missing files * fix context initialization todo * speed up test