added graphing and tensor capabilities + fixed some removal of layer bugs