Multiple bug fixes. Fixed #39 with multilines; fixed #40 with conditioning; fixed #41 also with conditioning, and resolved #42.