Consensus changes

New command-line options

Bug fixes

New API calls

Miscellaneous changes

Miscellaneous code and documentation cleanup