"Added window type to command line…fixed getfeaturematrix()…made the pointer pass by reference…"…still errors in the output.