fixed the intent code and name, use scl_slope=1 as suggested by Tim. Make a debug.xml file both for reading and writing.