made output configurable
added usage