Many fixes to many different things, each getting the SDK closer to fully functional.