took some debug prints out, and added svg result