refactoring
initial support for two modes of formatting; intoduced "by-status" command