modified to output explicitly requested information formatted neatly. Added unicode handling.