Added getFormat and getClauses. Closes #2