Error checking in runalgo and fixed runalgo display