add option not to flatten output feature matrix
add signed vs. unsigned option