small refactoring
refactored license detection to be using package-license
added package-license dependency
allow JSON output to stdout