fix tests (ordering of ack array mixed up)
simplify paragraph parsing code (which also adds the possibility to tell user about parsing error later)