added realtime matrix update.  major redesign