Updating code in preparation for SubLedger API v2

This is my initial pull request to start working actively on this library.