Documentation and bug fixes for the `lgtunit` tool