Significant rewrite and reorganization; still in progress
implemented OSE-style reporting command