Cleaned up BeastTreeFromMaster and added example as per #36.