updated to newest API, modified structs to reflect new API and adjusted tests to pass against on new API