added error checking to preamble section of consensus parser; added accompanying unit tests