add missing formatting letter (fix #76)
correctly sort keys; ensure each parameter is on separate line (fix #77)