Changes ap to as
Adds psych to Gemfile
Fixes trie