added in traceback method and started the liniar space stuff.  Also fixed some minor indexing errors.