Coverted everything to only use arrays internally (no more matrix nonsense). Added ability to specify a linear transformation on the output.