Fixes

Hey, I made some general bug fixes and switched to the officially supported aws-sdk.