Removed print statements, Added Mime type for proper firefox rendering