Fixed offline mode added debug mode, tweaked output.