Nxlog bugfixes

Addresses #12 and #13