Added direct run detection
Added license documentation