[PATCH] mgag200: some cleanup and a fix for corrupted output