basic outlay completed, first version linalg support added