updates for Elixir 0.13.3

Converted records to structs and took care of a few other deprecations for Elixir 0.13.3 compatibility.